// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import App from './App'
import router from './router/index'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import axios from 'axios'
import Vuex from 'vuex'
Vue.prototype.$axios = axios

Vue.prototype.apiurl = 'http://localhost/PHP230/';

//添加Fastclick移除移动端点击延迟
FastClick.attach(document.body)
Vue.use(ElementUI)
Vue.use(Vuex)



const store = new Vuex.Store({
	store : {
		count : 0,
		repay : 0,
		expired : 0
	},
	mutations : {
		sum (store,num){
			store.count = num;
		},
		sum2 (store,num){
			store.repay = num;
		},
		sum3 (store,num){
			store.expired = num;
		},
	}
});

Vue.config.productionTip = false

/* eslint-disable no-new */
var vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app-box')

 